//
// Created by 王乐 on 2022/2/5.
//

#ifndef LESTE_LEQUADRENDERER_H
#define LESTE_LEQUADRENDERER_H

#include "LeRenderer.h"

class LeQuadRenderer : public LeRenderer
{
public:
    LeQuadRenderer();
    virtual~LeQuadRenderer();

    //called before gameloop
    virtual void preLoopRender(); //get shader vao/vbo ready

    //called in gameloop
    virtual void render();

    //called after gameloop
    virtual void postLoopRender();

public:
    void addSprite(const char* diffuseMapPath);

protected:
    unsigned int diffuseMap;
    unsigned int specularMap;
};

#endif //LESTE_LEQUADRENDERER_H
